package edu.uit.se.slgroup.construct.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import edu.uit.se.slgroup.construct.dao.ArticleDao;
import edu.uit.se.slgroup.construct.domain.Article;
import edu.uit.se.slgroup.construct.domain.ArticleTemp;

public class ArticleServiceImpl implements ArticleService{

	@Autowired
	ArticleDao articleDao;
		
	public int insertArticle(Article article) {
		return articleDao.insertArticle(article);
	}

	public List<Article> getArticleList() {
		return articleDao.getArticleList();
	}

	public Article getArticleById(int id) {
		return articleDao.getArticleById(id);
	}

	public int updateArticle(Article article) {
		return articleDao.updateArticle(article);
	}

	public int deleteArticle(int id) {
		return articleDao.deleteArticle(id);
	}

	public List<ArticleTemp> getArticleTempList() {		
		return articleDao.getArticleTempList();
	}

}
